package com.bjl.dao;

import orm.base.BasePageInfo;
import orm.base.baseImp.BaseDaoInterface;

import java.util.Map;

/**
 * Created by ashin on 2017/12/8.
 */
public interface LotteryDao extends BaseDaoInterface {
    public int getLotteryCount(Map map) throws Exception;

    public BasePageInfo<Map> queryPastLotteryInfo(Map map) throws Exception;

    /**
     * 验证开奖
     * @param map
     * @return
     * @throws Exception
     */
    public int validateAllisWin(Map map) throws Exception;

    /**
     * 获得上一期的开奖时间
     * @param map
     * @return
     * @throws Exception
     */
    public Map getOpenTime(Map map) throws Exception;

    /**
     * 获得首次开奖时间
     * @param map
     * @return
     * @throws Exception
     */
    public String getFirstOpenTime(Map map) throws Exception;

}
